# -*- coding:utf-8 -*-

from flask import Flask ,render_template,request
app = Flask(__name__)

@app.route('/',methods=['GET','POST'])
def color():
    return render_template('index.html')

@app.route('http://wangtingyu.gitee.io/taobao/%E9%A2%9C%E8%89%B2%E9%80%89%E6%8B%A9%E6%A1%86/templates/backgroud.html',methods = ['POST','GET'])
def backgroud():
    if request.method == 'POST':
        color = request.form.get('color')
        color2 = request.form.get('color2')
        print(color,color2)
        return render_template('backgroud.html',
                               color = color,
                               color2 = color2)

if __name__ == '__main__':
    app.run(debug=True)
